<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
                xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>shouye</h1>
    <p th:text="${msg}"></p>
    <a th:href="@{/toLogin}">登录</a>
    <a th:href="@{/register}">注册</a>
    <hr>
    <div shiro:hasPermission="1">
        <a th:href="@{/user/add}">add</a>
    </div>
    <div shiro:hasPermission="2">
        <a th:href="@{/user/upd}">upd</a>
    </div>
</body>
</html>